<ul [ngStyle]="{'background-color': backgroundColor}">
  <li *ngFor="let item of menus; index as i;">
    <a href="#" 
      [ngStyle]="{ color: i === selectedIndex ? titleActiveColor : titleColor }"
      (click)="handleSelected(i)">{{ item.title }}</a>
    <span class="indicator" [ngStyle]="{ 'background-color': indicatorColor }" *ngIf="i === selectedIndex"></span>
  </li>
</ul>